﻿import Router from 'vue-router'
import Adventure from "../Adventure_index.vue"
const ad_user_index = r => require.ensure([], () => r(require('../ad_user_index.vue')));
const full_Scroll = r => require.ensure([], () => r(require('../scroll_full.vue')));
const Adventure_visit = r => require.ensure([], () => r(require('../Adventure_index_visit.vue')));
const ad_list = r => require.ensure([], () => r(require('../ad_list.vue')));
const user_index = r => require.ensure([], () => r(require('../../user_index/user_index.vue')));
import input_new_ad from "../new_ad/input_ad.vue";
import default_card from  "../default_card_show/default_card_show.vue";
const input_limit_card =r=>require.ensure([], () => r(require('../input_limit_card/input_limit_card.vue')));
export default new Router({
  routes: [
    {
      path: '/',
      redirect:"/Adventure",
      meta: {
        //requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
      },
      },
    {
        path: "/ad_list",
        component:ad_list
    },
    {
        path: "/ad_user_index",
        component: ad_user_index
    },
    {
        path: "/Adventure",
        component: Adventure
    },
    {
        path: "/full_Scroll",
        component: full_Scroll
    },
    {
        path: "/Adventure_visit",
        component: Adventure_visit
    },
    {
        path: "/user_index",
        component: user_index
    },
    {
      path:"/input_new_ad",
      component:input_new_ad
    },
    {
      path:"/default_card",
      component:default_card
    },
    {
      path:"/input_limit_card",
      component:input_limit_card
    }
    // {
    //   path:"/new_1",
    //   component:new_1
    // },
    // {
    //   path:"/new_wrapper",
    //   component:new_wrapper,
    //   children: [
    //     {
    //       // 当 /user/:id/profile 匹配成功，
    //       // UserProfile 会被渲染在 User 的 <router-view> 中
    //       path: 'new_1',
    //       component: UserProfile
    //     },
    //     {
    //       // 当 /user/:id/posts 匹配成功
    //       // UserPosts 会被渲染在 User 的 <router-view> 中
    //       path: 'posts',
    //       component: UserPosts
    //     }
    //   ]
    // }

    ],

})
